<div class="file-list">
    <volist name="list" id="vo">
        <dl class='file-item file-item-file dir-item'>
            <dt>
                <if condition="$file_type eq 'image'">
                    <a href="javascript:parent.imagePreviewDialog('{:cmf_get_image_preview_url($vo.file_path)}');" class='item-preview'>
                        <img title="{$vo.file_size/1024|round}KB" src='{:cmf_get_image_url($vo.file_path)}'/>
                <else/>
                    <a target='_blank' href="{:cmf_get_image_url($vo.file_path)}">
                        <img title="{$vo.file_size/1024|round}KB" src='{$file_img}'/>
                </if>
                </a>
            </dt>
            <dd class='hid_name' title="{$vo.filename}">{$vo.filename}</dd>
            <div class='oper'>
                <if condition="$file_type eq 'image'">
                    <a href="javascript:parent.imagePreviewDialog('{:cmf_get_image_preview_url($vo.file_path)}');" class='item-preview'>
                <else/>
                    <a target='_blank' href="{:cmf_get_image_url($vo.file_path)}">
                </if>
                {$btn_name}</a>
                <a href='javascript:;' class='item-del' data-title='{$vo.file_path}' data-id='{$vo.id}' onclick='del_img(this)'>删除</a>
            </div>
            <div class="item-checkbox">
                <input type='hidden' class='hid_url' value='/{$upload_path}{$vo.file_path}'/>
                <input type='hidden' class='asset-id' value='{$vo.id}'/>
            </div>
            <!-- <input type='checkbox' name='img_select[]' value='' class='item-checkbox'/> -->
        </dl>
    </volist>
</div>
<div class="clearfix"></div>
<!-- 分页 -->
<div class="pagination clearfix" >{$page}</div>
<div class="clearfix"></div>
<!-- 分页点击 -->
<script>
    var click_on = true;
    $('.pagination').on('click','a',function(){
        //防止重复点击
        if(!click_on) return false;
        click_on = false;

        //ajax加载数据
        var url = this.href;
        GetMaterial(url);
        click_on = true;

        //阻止默认行为
        return false;
    });
</script>

